<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>菜单管理</legend>
        </fieldset>
        <form class="layui-form" lay-filter="menu" action="">
            <input type="hidden" name="menuId" value="">
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-block">
                    <input type="text" name="title" lay-verify="title" autocomplete="off" placeholder="请输入菜单名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单类型</label>
                <div class="layui-input-block">
                    <select name="menuType" lay-verify="required"  lay-reqText="菜单类型不能为空"  lay-filter="menuType">
                        <option value=""></option>
                        {{range $key, $value := .menuTypeList}}
                        <option value="{{$key}}">{{$value}}</option>
                        {{end}}

                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">父类菜单</label>
                <div class="layui-input-block">
                    <select name="parentId"  lay-verify="required"  lay-reqText="父类菜单不能为空"  lay-filter="parentId">
                        <option value="-1" selected="">根目录</option>
                        {{range $key, $value := .menuList}}
                        <option value="{{$value.Id}}" >{{$value.Title}}</option>
                        {{end}}

                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">路由地址</label>
                <div class="layui-input-block">
                    <input type="text" name="path" lay-verify="required" lay-reqText="路由地址不能为空" lay-verify="path" autocomplete="off" placeholder="请输入路由地址，目录菜单可以填写#号代替" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">路由参数</label>
                <div class="layui-input-block">
                    <input type="text" name="pathParam" lay-verify="pathParam" autocomplete="off" placeholder="请输入路由参数" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">请求方法</label>
                <div class="layui-input-block">
                    <select name="pathMethod" lay-filter="pathMethod">
                        <option value="GET" selected="">GET</option>
                        <option value="POST">POST</option>
                        <option value="PUT">PUT</option>
                        <option value="DEL">DEL</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">是否显示</label>
                <div class="layui-input-block">
                    <input type="radio" name="isShow" value="0" title="显示" checked="">
                    <input type="radio" name="isShow" value="1" title="隐藏">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">是否启用</label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="0" title="启用" checked="">
                    <input type="radio" name="status" value="1" title="禁用">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序值</label>
                <div class="layui-input-inline">
                    <input type="text" name="orderNum" lay-verify="orderNum" value="100" placeholder="请输入排序值" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea placeholder="备注内容" name="bak" class="layui-textarea"></textarea>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">

                    <button id="cancelAdd" class="layui-btn layui-btn-danger">关闭</button>

                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <button class="layui-btn" lay-submit="" lay-filter="menu">立即提交</button>
                </div>
            </div>
        </form>


    </div>
</div>